# Demonstrate the use of Canvas - Tutorial 15a 15b, 15c
# Canvas create a container or a frame on a window and allows
# us to draw stuff on that.

import sys
from tkinter import *

mainWindow = Tk()
mainWindow.geometry("300x300+200+200")
mainWindow.title("Canvas")

canvas1 = Canvas(mainWindow, width=300, height=300, bg="cyan")
canvas1.create_line(10, 10, 100, 100)
canvas1.create_rectangle(50, 20, 120, 120)
canvas1.create_oval(150, 80, 280, 150)
canvas1.create_arc((20, 200, 300, 300), start=0, extent=250, fill="red")

canvas1.pack()

mainWindow.mainloop()

